package com.oo.inherit_3.solider;

/**
 * Person--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 14:27
 **/
public class Person {

    private String name;

    private int age;

    private String sex;

    private String duty;

    public Person(String name, int age, String sex, String duty) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.duty = duty;
    }

    public Person() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getDuty() {
        return duty;
    }

    public void setDuty(String duty) {
        this.duty = duty;
    }

    protected void work() {
        System.out.println("我是普通人，要工作才有饭吃");
    }
}
